package cn.usain.service.impl;


import cn.usain.mapper.RatingStatisticsMapper;
import cn.usain.service.RatingStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 20171
 */
@Service
public class RatingStatisticsServiceImpl implements RatingStatisticsService {

    @Autowired
    private RatingStatisticsMapper ratingStatisticsMapper;

    @Override
    public List<Map<String, Object>> getRatingStatistics(Map<String, Object> queryParams) {
        return ratingStatisticsMapper.getRatingStatistics(queryParams);
    }

    @Override
    public List<Map<String, Object>> countDriverRatings() {
        return ratingStatisticsMapper.countDriverRatings();
    }
}